//
//  BaseNavigationController.m
//  DLTravels
//
//  Created by mac1012 on 2016/12/13.
//  Copyright © 2016年 DianlE. All rights reserved.
//

#import "BaseNavigationController.h"
#import "LoginViewController.h"
#import "WeatherViewController.h"
#import "TravelsViewController.h"
#import "SettingViewController.h"

@interface BaseNavigationController ()<UINavigationControllerDelegate>

@end

@implementation BaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.delegate = self;
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated{
    if ([viewController isKindOfClass:[LoginViewController class]] || [viewController isKindOfClass:[WeatherViewController class]] || [viewController isKindOfClass:[TravelsViewController class]] ||[viewController isKindOfClass:[SettingViewController class]]) {
        self.navigationBarHidden = YES;
    }else
        self.navigationBarHidden = NO;

}



@end
